package com.msmall.community.play.model;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import com.msmall.base.model.BaseObject;

/**
 * 插件实体
 * @author zhzy
 *
 */
@Entity
@Table(name="base_play")
public class Play extends BaseObject{

	private static final long serialVersionUID = -6047984686922440878L;

	@Id
	@Column(name="play_id")
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	private Long playId;
	
	/**
	 * 插件类型
	 */
	@Column(name="types")
	private Integer types;
	
	/**
	 * 插件中文名称
	 */
	@Column(name="chinese_name")
	private String chineseName;
	
	/**
	 * 插件E文名称
	 */
	@Column(name="english_name")
	private String englishName;
	/**
	 * 插件描述
	 */
	@Column(name="description")
	private String description;
	
	/**
	 * 插件图片
	 */
	@Column(name="images")
	private String images;
	
	/**
	 * 1可用 0 不可用
	 */
	@Column(name="enabled")
	private Short enabled;
	
	/**
	 * 进入插件首页的URL
	 */
	@Column(name="url")
	private String url;
	
	/**
	 * 插件创建人
	 */
	@Column(name="publisher")
	private String publisher;
	
	/**
	 * 录入系统者，系统用户
	 */
	@Column(name="creator")
	private Long creator;
	
	/**
	 * 一共有多少用户正在玩/已经玩过 此游戏
	 */
	@Column(name="total")
	private Integer total;
	
	/**
	 * 此游戏一共可以给多少用户玩， 例如一共游戏只能给前10个人玩
	 */
	@Column(name="limits")
	private Integer limits;
	
	@Column(name="create_time")
	@Temporal(TemporalType.TIMESTAMP)
	private Date createTime;
	
	public Long getPlayId() {
		return playId;
	}

	public void setPlayId(Long playId) {
		this.playId = playId;
	}

	public String getChineseName() {
		return chineseName;
	}

	public void setChineseName(String chineseName) {
		this.chineseName = chineseName;
	}

	public String getEnglishName() {
		return englishName;
	}

	public void setEnglishName(String englishName) {
		this.englishName = englishName;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Short getEnabled() {
		return enabled;
	}

	public void setEnabled(Short enabled) {
		this.enabled = enabled;
	}

	public Integer getTypes() {
		return types;
	}

	public void setTypes(Integer types) {
		this.types = types;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getPublisher() {
		return publisher;
	}

	public void setPublisher(String publisher) {
		this.publisher = publisher;
	}

	public Long getCreator() {
		return creator;
	}

	public void setCreator(Long creator) {
		this.creator = creator;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getImages() {
		return images;
	}

	public void setImages(String images) {
		this.images = images;
	}

	public Integer getTotal() {
		return total;
	}

	public void setTotal(Integer total) {
		this.total = total;
	}

	public Integer getLimits() {
		return limits;
	}

	public void setLimits(Integer limits) {
		this.limits = limits;
	}

	public boolean equals(Object o) {
		return false;
	}

	public int hashCode() {
		return 0;
	}

	public String toString() {
		return null;
	}

}